package com.qms.qep.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;

/**
 * 缺陷记录对象 defect_record
 * 
 * @author DefectRecord
 */
public class DefectRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 检验任务ID */
    @Excel(name = "检验任务ID")
    private Integer inspectionTaskId;

    /** 缺陷ID */
    @Excel(name = "缺陷ID")
    private Integer defectId;

    /** 缺陷位置 */
    @Excel(name = "缺陷位置")
    private String location;

    /** 严重程度 */
    @Excel(name = "严重程度")
    private String severity;

    /** 图片URL */
    @Excel(name = "图片URL")
    private String imageUrl;

    /** 维修方法 */
    @Excel(name = "维修方法")
    private String repairMethod;

    /** 维修结果 */
    @Excel(name = "维修结果")
    private String repairResult;

    // 扩展字段
    /** 缺陷名称 */
    private String defectName;
    
    /** 缺陷类型 */
    private String defectType;
    
    /** 任务编号 */
    private String taskCode;
    
    /** 产品名称 */
    private String productName;
    
    /** 批次编号 */
    private String batchCode;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setInspectionTaskId(Integer inspectionTaskId) 
    {
        this.inspectionTaskId = inspectionTaskId;
    }

    public Integer getInspectionTaskId() 
    {
        return inspectionTaskId;
    }
    public void setDefectId(Integer defectId) 
    {
        this.defectId = defectId;
    }

    public Integer getDefectId() 
    {
        return defectId;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setSeverity(String severity) 
    {
        this.severity = severity;
    }

    public String getSeverity() 
    {
        return severity;
    }
    public void setImageUrl(String imageUrl) 
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() 
    {
        return imageUrl;
    }
    public void setRepairMethod(String repairMethod) 
    {
        this.repairMethod = repairMethod;
    }

    public String getRepairMethod() 
    {
        return repairMethod;
    }
    public void setRepairResult(String repairResult) 
    {
        this.repairResult = repairResult;
    }

    public String getRepairResult() 
    {
        return repairResult;
    }
    
    public String getDefectName() {
        return defectName;
    }

    public void setDefectName(String defectName) {
        this.defectName = defectName;
    }

    public String getDefectType() {
        return defectType;
    }

    public void setDefectType(String defectType) {
        this.defectType = defectType;
    }

    public String getTaskCode() {
        return taskCode;
    }

    public void setTaskCode(String taskCode) {
        this.taskCode = taskCode;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("inspectionTaskId", getInspectionTaskId())
            .append("defectId", getDefectId())
            .append("location", getLocation())
            .append("severity", getSeverity())
            .append("imageUrl", getImageUrl())
            .append("repairMethod", getRepairMethod())
            .append("repairResult", getRepairResult())
            .append("createTime", getCreateTime())
            .toString();
    }
} 